<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class BaseController extends Controller
{
    // status 200  400 逻辑有错误  403 未授权  500 服务器代码出错
    public function response($status = 200, $message = '', $data = null) {
        return [
            'status' => $status,
            'message' => $message,
            'data' => $data
        ];
    }
}
